import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;

public class FileInputStreamTest3 {
    public static void main(String[] args) throws Exception {
        InputStream is = new FileInputStream("IO\\IO\\FileInputStream\\ccc.txt");

        File f = new File("IO\\IO\\FileInputStream\\ccc.txt");
        long size = f.length();
        byte[] buffer = new byte[(int) size];

        int len = is.read(buffer);
        System.out.println(new String(buffer));

        System.out.println(size);
        System.out.println(len);
    }
}
